﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="plugin_list.aspx.cs" Inherits="ByteSite.Web.admin.settings.plugin_list" ValidateRequest="false" %>
<%@ Import namespace="ByteSite.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>插件设置</title>
<link rel="stylesheet" type="text/css" href="../../scripts/artdialog/ui-dialog.css" />

<link rel="stylesheet" type="text/css" href="../skin/default/style.css" />
<link href="../skin/uikit/css/uikit.min.css" rel="stylesheet" />
<script type="text/javascript" src="../skin/uikit/js/uikit.min.js"></script>
<script type="text/javascript" src="../skin/uikit/js/uikit-icons.min.js"></script>
<script type="text/javascript" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" src="../../scripts/xm-select/xm-select.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
</head>

<body class="mainbody">
<form id="form1" runat="server">


<!--工具栏-->
<div class="uk-grid-match uk-child-width-auto uk-flex-between uk-grid">
    <div class="uk-first-column">
        <div class="uk-panel">
            <div class="uk-button-group uk-first-column">
                <a class="uk-button uk-button-default" uk-icon="check" href="javascript:;" onclick="checkAll(this);" uk-tooltip="全选"></a>
                <asp:LinkButton ID="lbtnInstall" runat="server" uk-icon="nut" CssClass="uk-button uk-button-default" OnClientClick="return ExePostBack('lbtnInstall','已安装的插件不执行重复安装，是否继续?');" onclick="lbtnInstall_Click" uk-tooltip="安装"></asp:LinkButton>
                <asp:LinkButton ID="lbtnUnInstall" runat="server" uk-icon="trash" CssClass="uk-button uk-button-default" OnClientClick="return ExePostBack('lbtnUnInstall','卸载插件不会删除插件目录，是否继续?');" onclick="lbtnUnInstall_Click" uk-tooltip="卸载"></asp:LinkButton>
                <asp:LinkButton ID="lbtnRemark" runat="server" uk-icon="album" CssClass="uk-button uk-button-default" OnClientClick="return CheckPostBack('lbtnRemark');" onclick="lbtnRemark_Click" uk-tooltip="生成模板"></asp:LinkButton>
            </div>
        </div>
    </div>
</div>
<!--/工具栏-->

<!--列表-->
<div class="table-container">
  <asp:Repeater ID="rptList" runat="server">
  <HeaderTemplate>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="uk-table uk-table-striped uk-table-justify uk-table-middle uk-table-hover uk-table-divider">
    <thead><tr>
      <th width="8%">选择</th>
      <th width="20%" class="uk-text-left">插件名称</th>
      <th width="12%" class="uk-text-left">目录</th>
      <th width="12%">作者</th>
      <th width="10%">版本号</th>
      <th>备注</th>
      <th width="10%">状态</th>
    </tr></thead>
  </HeaderTemplate>
  <ItemTemplate>
    <tr>
      <td align="center">
        <asp:CheckBox ID="chkId" CssClass="checkall uk-checkbox" runat="server" />
        <asp:HiddenField ID="hidDirName" Value='<%#Eval("directory")%>' runat="server" />
      </td>
      <td class="uk-text-left"><%#Eval("name")%></td>
      <td class="uk-text-left"><%#Eval("directory")%></td>
      <td><%#Eval("author")%></td>
      <td><%#Eval("version")%></td>
      <td><%#Eval("description")%></td>
      <td align="center">
        <%#Convert.ToInt32(Eval("isload")) == 1 ? "已安装" : "未安装"%>
      </td>
    </tr>
  </ItemTemplate>
  <FooterTemplate>
    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"7\">暂无记录</td></tr>" : ""%>
  </table>
  </FooterTemplate>
  </asp:Repeater>
</div>
<!--/列表-->

</form>
</body>
</html>